#Requires AutoHotkey v2.0

~CapsLock::
{
    if GetKeyState("CapsLock", "T") {
        ; Send "{Shift down}"
        Send "{w down}"
        ; Sleep 1000
        ; Send "{Shift up}"
    } else {
        Send "{w up}"
        ; Send "w"
    }
}

; 禁止 Ctrl+Esc 组合键
^Esc::Send "{Esc}"
